<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增AGV休息区管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agvRest-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">休息区编码：</label>
                <div class="col-sm-8">
                    <input name="restAreaId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否可用：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('yes_or_no')}">
                        <input type="radio" th:id="${'isUsed_' + dict.dictCode}" name="isUsed" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'isUsed_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">区域状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('space_status')}">
                        <input type="radio" th:id="${'areaStatus_' + dict.dictCode}" name="areaStatus" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'areaStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否有料架：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('yes_or_no')}">
                        <input type="radio" th:id="${'hasRack_' + dict.dictCode}" name="hasRack" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'hasRack_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="backup1" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="backup2" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="backup3" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/agvRest"
        $("#form-agvRest-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-agvRest-add').serialize());
            }
        }
    </script>
</body>
</html>